cmake_minimum_required(VERSION 3.20)

set(n 100)

macro(foo arg1)
    set(n 200)
    message("In Macro, n = ${n}")
    message(STATUS "arg1 = ${arg1} argc = ${ARGC} argv = ${ARGV} argn = ${ARGN}")
endmacro()

foo(${n} 2 3)
message("Out Macro, n = ${n}")